package com.edu.whty.service;


import com.edu.whty.entity.base.AttachFile;

import java.util.List;

/**
 * @desc	资源附件表Service接口类
 * @author	
 * @date	2014-5-7
 */
public interface AttachFileService {

    /**
     * 新增
     * @param attachFile
     * @throws Exception
     */
    Long addAttachFile(AttachFile attachFile) throws Exception;

    /**
     * 修改
     * @param attachFile
     * @throws Exception
     */
    void modAttachFile(AttachFile attachFile) throws Exception;


    /**
	 * 文件上传完成后，更新以及发起转码
	 * @param attachFile
	 * @return
	 * @throws Exception
	 */
	AttachFile uploadComplete(AttachFile attachFile) throws Exception;


	/**
	 * 根据主键查询附件
	 * @param fid
	 * @return
	 */
	AttachFile getAttachFile(Long fid);

	/**
	 * 查询校园主机未同步到云端数据
	 * @param
	 * @return
	 * @throws Exception
	 */
	List<AttachFile> getAttachFileIsLocal() throws Exception;


	/**
	 * 查询云端未同步到校园主机数据
	 * @param
	 * @return
	 * @throws Exception
	 */
	List<AttachFile> getAttachFileIsCloud() throws Exception;


	



	/**
	 * 根据orgId查询尚未同步文件的附件信息
	 * @param orgId
	 * @return
	 * @throws Exception
	 */
    List<AttachFile> getAttachFileByOrgId(String orgId)throws Exception;
}
